/* 
 * File:   Mean.h
 * Author: Gab'z
 *
 * Created on 4 juin 2012, 23:20
 */

#ifndef MEAN_H
#define	MEAN_H

#include "NaryOperator.h"

namespace calculator {
    
    class Mean : public NaryOperator {
        friend class CommandMap;

    public:
        virtual Mean* clone() const;

        const Number* apply(const Stack* stack) const throw (ArithmeticException);
        virtual ~Mean();
        
    private:
        Mean(const std::string name);
        Mean(const Mean& orig);
    };
}

#endif	/* MEAN_H */

